/*
 * @Author: 张贤石 “阿册011432181@163.com”
 * @Date: 2022-08-13 14:03:36
 * @LastEditors: 张贤石 “阿册011432181@163.com”
 * @LastEditTime: 2022-08-14 20:34:59
 * @FilePath: \mall-management\src\request\flash.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 限时购活动管理
//    根据活动名称分页查询

import instance from ".";

//根据活动名称分页查询
export const flashlistApi = (
  params: IRoleParamsType
): IPR<IgetListRes<IRoleFlashlish>> => instance.get("/flash/list", { params });
//    删除活动
export const flashdeleteApi = (params: flashdelete) =>
  instance.post(`/flash/delete/${params.id}`, params);
// 编辑接口
export const flashupdateApi = (id: any, data?: any) =>
  instance.post(`/flash/update/${data.id}`, data);
